/* styles.css */

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
}
  
header {
  background-color: #003366;
  padding: 1rem;
  color: white;
}
  
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
  
.logo {
  font-size: 1.5rem;
  font-weight: bold;
}
  
.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}
  
.nav-links li {
  position: relative;
}
  
.nav-links a {
  color: white;
  text-decoration: none;
  padding: 0.5rem;
  display: block;
}
  
.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  color: #333;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  top: 100%;
  left: 0;
  min-width: 200px;
  z-index: 1000;
}
  
.dropdown-content li a {
  color: #333;
  padding: 0.5rem 1rem;
}
  
.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a:hover{
  background-color: #cedff3;
}

.dropdown-content h4:hover{
  background-color: #cedff3;
  text-decoration: none;
}

.dropdown-content h4 {
  color: #333;
  text-decoration: none;
  font-size: 0.90em;
  padding: 0.5rem 1rem;
}
  
.hero {
  background-color: #e0f0ff;
  padding: 2rem;
  text-align: center;
  position: sticky;
}

.hero p {
  text-align: center;
}
  
.search-bar {
  padding: 1rem;
  text-align: center;
  background-color: #fff;
}
  
.search-bar input {
  padding: 0.5rem;
  width: 60%;
  max-width: 400px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.search-bar button {
  width: 40px;
  height: 33px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.aside {
  flex: 1;
  min-width: 250px;
  background-color: #fff;
  padding: 1rem;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}
  
.container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
}

  .main-content {
    flex: 2;
    min-width: 300px;
  }
  
.left-sidebar {
    width: 300px;
    background-color: #e0f0ff;
    padding: 16px;
    color: #fff;
    border-radius: 8px;
    top: 0;
    left: 0;
    height: 100vh;
    transition: transform 0.35 ease;
    z-index: 999;
}

  section {
    margin-bottom: 2rem;
  }
  
  section h2 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: #003366;
  }
  
  ul {
    list-style: none;
    padding-left: 1rem;
  }
  
  ul li {
    margin-bottom: 0.5rem;
  }

  .right-sidebar {
     width: 250px;
      background-color: #fff;
      padding: 20px;
      color: #fff;

  }

/*News Panel*/
.news-panel {
  background-color: #fff;
  border-left: 6px solid #2c3e50;
  margin-bottom: 30px;
  padding: 20px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
  border-radius: 6px;
}
.news-panel h2 {
  margin-top: 0;
  color: #2c3e50;
}


.news-section {
  margin-bottom: 30px;
}

.clickable {
  cursor: pointer;
  color: #0077cc;
  text-decoration: underline;
}

.p {
  text-align: justify;
}

.article-content.hidden {
  display: none;
}

.article-content {
  padding: 1em;
  background-color: #f9f9f9;
  border-top: 1px solid #ccc;
}

.article-content section {
  background: #ffffff;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.article-content h4 {
  margin-top: 20px;
  color: #2c3e50;
  font-size: 1.1em;
  border-left: 4px solid #0077cc;
  padding-left: 8px;
}

.article-content ul {
  margin: 10px 0 20px 20px;
  padding: 0;
  list-style: disc;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.article-content table th,
.article-content table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}

.article-content table thead {
  background-color: #f4f4f4;
}

.closing {
  margin-top: 30px;
  font-weight: bold;
  font-style: italic;
  color: #333;
}

footer p {
  text-align: center;
}

.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    font-size: 0.85rem;
    padding: 0;
    margin: 0;
    /* Optional: adjust global spacing or background if needed */
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  .header-hero-wrapper,
  .search-bar,
  .aside,
  .main-content,
  .right-sidebar {
    padding: 0.5rem !important;
    margin: 0 !important;
  }
  .left-sidebar {
    display: none;
  }
  .container {
    flex-direction: column;
  }
  .main-content {
    margin-left: 0 !important;
  }
  nav {
    flex-direction: row;
    position: relative;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: #003366;
    position: absolute;
    top: 60px; /* adjust as needed */
    right: 0;
    width: 100%;
    z-index: 1001;
  }

  .nav-links.open {
    display: flex;
  }
  .hamburger {
    display: block;
  }
}
